package top.infopub.mgr.bpa.service;

import com.github.pagehelper.Page;
import top.infopub.dto.bpa.BusinessPaymentQueryDto;
import top.infopub.mgr.bpa.jsonVo.BusinessPaymentDetailJsonVo;
import top.infopub.mgr.bpa.vo.BusinessPaymentVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.bpa.BusinessPayment;

/**
 * @Description: 商务成本支付信息
 * @Author: xieyong
 * @Date: 2021/6/19 20:46
 **/
public interface BusinessPaymentService {

    /**
     * @param businessPaymentQueryDto: 分页查询参数
     * @Description: 根据条件查询商务成本支付
     * @Author: xieyong
     * @Date: 2021/6/19 21:14
     * @return: com.github.pagehelper.Page<top.infopub.mgr.bpa.vo.BusinessPaymentVo>
     **/
    Page<BusinessPaymentVo> selectByDomainWhere(Page<BusinessPaymentVo> page, BusinessPaymentQueryDto businessPaymentQueryDto);


    /**
     * @Description: 根据主键查询详情：BusinessPayment+预结算详情
     * @Author: xieyong
     * @Date: 2021/6/20 9:30
     * @param id: 主键
     * @return: top.infopub.mgr.bpa.jsonVo.BusinessPaymentDetailJsonVo
     **/
    BusinessPaymentDetailJsonVo queryDetailById(String id);

    /**
     * @Description: 保存或者提交
     * @Author: xieyong
     * @Date: 2021/6/20 10:23
     * @param detailJsonVo: 详细参数
     * @param submitType: 类型
     * @return: top.infopub.mgr.common.vo.RspVo
     **/
    RspVo save(BusinessPaymentDetailJsonVo detailJsonVo,Integer submitType);

    /**
     * @Description: 查询基础详情
     * @Author: xieyong
     * @Date: 2021/6/20 9:39
     * @param id: 主键id
     * @return: top.infopub.model.bpa.BusinessPayment
     **/
    BusinessPayment selectByPrimaryKey(String id);
}
